In-Place Calculation of Minimum-Redundancy Codes
نویسندگان
چکیده
The optimal prefix-free code problem is to determine, for a given array p = [p~li 9 {1.. . n}] of n weights, an integer array l -[l~ I i 9 {1.. . n}] of n codeword lengths such that ~ 1 2-~' ~ 1 and ~i~=1 pil~ is minimized. Huff-man's famous greedy algorithm solves this problem in O(n log n) time, if p is unsorted; and can be implemented to execute in O(n) time, if the input array p is sorted. Here we consider the space requirements of the greedy method. We show that if p is sorted then it is possible to calculate the array I in-place, with li overwriting Pi, in O(n) time and using O(1) additional space. The new implementation leads directly to an O(nlogn)-time and n + O(1) words of extra space implementation for the case when p is not sorted. The proposed method is simple to implement and executes quickly.
منابع مشابه
Rack-Aware Regenerating Codes for Data Centers
Erasure coding is widely used for massive storage in data centers to achieve high fault tolerance and low storage redundancy. Since the cross-rack communication cost is often high, it is critical to design erasure codes that minimize the cross-rack repair bandwidth during failure repair. In this paper, we analyze the optimal trade-off between storage redundancy and cross-rack repair bandwidth s...
متن کاملAn approach to fault detection and correction in design of systems using of Turbo codes
We present an approach to design of fault tolerant computing systems. In this paper, a technique is employed that enable the combination of several codes, in order to obtain flexibility in the design of error correcting codes. Code combining techniques are very effective, which one of these codes are turbo codes. The Algorithm-based fault tolerance techniques that to detect errors rely on the c...
متن کاملSimultaneous Allocation Of Reliability & Redundancy Using Minimum Total Cost Of Ownership Approach
This paper addresses the mixed integer reliability redundancy allocation problems to determine simultaneous allocation of optimal reliability and redundancy level of components based on three objective goals. System engineering principles suggest that the best design is the design that maximizes the system operational effectiveness and at the same time minimizes the total cost of ownership (TCO...
متن کاملA New Nonlinear Multi-objective Redundancy Allocation Model with the Choice of Redundancy Strategy Solved by the Compromise Programming Approach
One of the primary concerns in any system design problem is to prepare a highly reliable system with minimum cost. One way to increase the reliability of systems is to use redundancy in different forms such as active or standby. In this paper, a new nonlinear multi- objective integer programming model with the choice of redundancy strategy and component type is developed where standby strategy ...
متن کاملOn Weierstrass semigroups and the redundancy of improved geometric Goppa codes
Improved geometric Goppa codes have a smaller redundancy and the same bound on the minimum as ordinary algebraic geometry codes. For an asymptotically good sequence of function fields we give a formula for the redundancy.
متن کامل